package com.hk.migration.db.hk;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * 七陌呼叫数据
 */
@Data
@Table(name = "sale_phone_record")
public class SalePhoneRecord implements Serializable {
    /**
     * GUID
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * sheet
     */
    @Column(name = "call_sheet_id")
    private String callSheetId;

    /**
     * 呼叫号码
     */
    @Column(name = "call_no")
    private String callNo;

    /**
     * 通话状态 dealing（已接）,notDeal（振铃未接听）,leak（ivr放弃）,queueLeak（排队放弃）,blackList（黑名单）,voicemail（留言）
     */
    @Column(name = "`status`")
    private String status;

    /**
     * 创建时间
     */
    @Column(name = "created")
    private Date created;

    /**
     * 开始时间
     */
    @Column(name = "begin_time")
    private Date beginTime;

    /**
     * 结束时间
     */
    @Column(name = "end_time")
    private Date endTime;

    /**
     * 被呼叫号码
     */
    @Column(name = "called_no")
    private String calledNo;

    /**
     * 提供时间
     */
    @Column(name = "offering_time")
    private Date offeringTime;

    /**
     * 连接类型
     */
    @Column(name = "connect_type")
    private String connectType;

    /**
     * 记录文件名
     */
    @Column(name = "record_file_name")
    private String recordFileName;

    /**
     * 客户名
     */
    @Column(name = "customer_name")
    private String customerName;

    /**
     * 呼叫ID
     */
    @Column(name = "call_id")
    private String callId;

    @Column(name = "pbx")
    private String pbx;

    /**
     * 队列名称
     */
    @Column(name = "queue_name")
    private String queueName;

    /**
     * 文件服务器
     */
    @Column(name = "file_server")
    private String fileServer;

    /**
     * 省
     */
    @Column(name = "province")
    private String province;

    /**
     * 行政区
     */
    @Column(name = "district")
    private String district;

    /**
     * 行政区code
     */
    @Column(name = "district_code")
    private String districtCode;

    /**
     * 通话时长
     */
    @Column(name = "call_time_length")
    private Long callTimeLength;

    /**
     * 当前所拨打分机号码（工号）
     */
    @Column(name = "exten")
    private String exten;

    /**
     * 七牛资源地址
     */
    @Column(name = "qiniu_url")
    private String qiniuUrl;

    private static final long serialVersionUID = 1L;
}